def jiecheng(num):
    pro = 1
    for i in range(1, num + 1):
        pro *= i
    return pro


Sum = 0
for i in range(1, 11):
    Sum += jiecheng(i)
print(Sum)
